Make unknown units in parse_speed into warnings and not fatal.
authorRobert Lipe <robertlipe@gpsbabel.org>
Fri, 30 Dec 2016 05:12:18 +0000 (23:12 -0600)
committerRobert Lipe <robertlipe@gpsbabel.org>
Fri, 30 Dec 2016 05:12:18 +0000 (23:12 -0600)
parse.cc

index 6540b94b530b28b98edfbbc9c02d33a4cc18aa16..981e2f1b64abdc31cd7228d2298cec2665328d9d 100644 (file)
--- a/parse.cc
+++ b/parse.cc
@@ -137,7 +137,7 @@ parse_speed(const char* str, double* val, const double scale, const char* module
   } else if (case_ignore_strcmp(unit, "mih") == 0) {
     *val = MPH_TO_MPS(*val);
   } else {
-    fatal("%s: Unsupported speed unit '%s' in item '%s'!\n", module, unit, str);
+    warning("%s: Unsupported speed unit '%s' in item '%s'!\n", module, unit, str);
   }
 
   return 2;